﻿using NUnit.Framework;

namespace AllIsWell.Web.Tests.Controllers.PageControllerTests
{
    [TestFixture]
    class GreetUser : PageControllerTest
    {
        [Test]
        public void ShouldReturnGreetUserView()
        {
            var greetUserView = PageController.GreetUser();

            Assert.AreEqual("", greetUserView.ViewName);
        }

        [Test]
        public void ShouldPassGreetingMessageToTheView()
        {
            PageController.TempData["GreetingMessage"] = "All is Well";

            PageController.GreetUser();

            Assert.AreEqual("All is Well", PageController.ViewBag.GreetingMessage);
        }
    }
}